<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport"
	content="initial-scale=1, maximum-scale=1, user-scalable=no">
<title>tiledmap</title>
<link rel="stylesheet"
	href="http://192.168.20.117:8080/arcgis_js_v315_api/esri/css/esri.css" />
<style>
html,body,#map {
	height: 100%;
	width: 100%;
	margin: 0;
	padding: 0;
}
</style>

<script src="http://192.168.20.117:8080/arcgis_js_v315_api/init.js"></script>
<script>
	var map;
	require([ "esri/map", 
	          "esri/layers/ArcGISTiledMapServiceLayer",
			  "dojo/domReady!" ],
			function(Map, Tiled) {
				map = new Map("map");
				var url = "http://mapserv.utah.gov/arcgis/rest/services/BaseMaps/Terrain/MapServer";
				/**
				切片的好处：分块加载地图，处理速度会因缓存变得快点
				*/
				//切片不成功，
				//"http://192.168.20.117:6080/arcgis/rest/services/mymap/MapServer";
				var tiled = new Tiled(url);
				map.addLayer(tiled);
			});
</script>
</head>
<body>
	<div id="map"></div>
</body>
</html>
